package com.devunion.bogdan.util;

import java.util.Vector;
import java.util.Collections;
import java.util.Arrays;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Leska
 * Date: 24.10.2004
 * Time: 16:48:28
 * To change this template use File | Settings | File Templates.
 */

/** Class for gouping different objects in logical group.
 *  It provides some operations under all objects of the group.
 */
public class LogicalGroup {
    /**
     *  Elements of the group.
     */
    private Vector elements = new Vector(0);

    public LogicalGroup(Vector c) {
        elements.addAll(c);
    }

    public void add(Component c) {
        elements.add(c);
    }

    public void addAll(Vector c) {
        elements.addAll(c);
    }

    public void remove(Component c) {
        elements.remove(c);
    }
}
